﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tasker.Common
{
    public static class HashHelper
    {
        public static string ComputeMD5(this string source)
        {
            var hashBytes = System.Security.Cryptography.MD5.Create().ComputeHash(source.String2ByteArray());
            return Convert.ToBase64String(hashBytes);
        }
    }
}
